<%@ page import="cn.estore.dao.CustomerDao" %>
<%@ page import="cn.estore.entity.CustomerEntity" %><%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2023/12/19
  Time: 9:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="0" width="1024" align="center">
    <tr>
        <%--        顶部--%>
        <td colspan="6">
            <jsp:include page="../Common/head.jsp" flush="true"/>
        </td>
    </tr>
    <tr>
        <td width="40%" bgcolor="#F5F5F5" valign="top">
            <%--            左侧--%>
            <jsp:include page="../Common/left.jsp" flush="true"/>
        </td>
        <td width="724" align="center" valign="top" bgcolor="#FFFFFF">
            <%--            右侧--%>
            <div align="left">
                <img src="/javaweb_war/systemImages/fg_right03.jpg">
            </div>
            <%--    显示商品--%>
<%
    CustomerDao dao = new CustomerDao();
    CustomerEntity user = dao.selectCustomerEntity(request.getParameter("name"));
%>
<%
    if (user == null) {
%>
<p><strong>不存在此会员，请重新输入</strong></p>
<meta http-equiv="refresh" content="2;URL=userPasswordFind1.jsp">
<%
} else {
%>
<form action="userPasswordFind3.jsp" name="form" method="post" onsubmit="return checkEmpty(form)">
    <table border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#819BBC"
           bordercolorlight="#FFFFFF">
        <tr>
            <td width="105" height="35">
                <div align="right">问题:</div>
            </td>
            <td width="187">
                <div align="left">
                    <input type="hidden" name="name" value="<%=user.getUserName()%>">
                    <%=user.getPasswordQuestion()%>
                </div>
            </td>
        </tr>
        <tr>
            <td width="105" height="35">
                <div align="left">
                    <input type="text" name="result">
                </div>
            </td>
        </tr>
    </table>
    <br>
    <input type="image" class="input1" src="<%=request.getContextPath()%>/systemImages/save.jpg" width="51" height="20">
    &nbsp;&nbsp;
    <a href="#" onclick="javascript:form.reset()">
        <img src="<%=request.getContextPath()%>/systemImages/clear.gif" alt="">
    </a>
    &nbsp;&nbsp;
    <a href="#" onclick="javascript:history.go(-1)">
        <img src="<%=request.getContextPath()%>/systemImages/back.gif" alt="">
    </a>
    <%}%>
</form>
    <tr>

        <%--        底部--%>
        <td colspan="2">

            <jsp:include page="../Common/statusBarNavigation.jsp" flush="true"/>
        </td>
    </tr>
</table>
</body>
</html>
